package org.com.yz.dal.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 商户配置表
 * </p>
 *
 * @author wzc123
 * @since 2018-08-02
 */
@TableName("mch_config")
@Getter
@Setter
public class MchConfig extends Model<MchConfig> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商户号
     */
    @TableField("mch_no")
    private String mchNo;
    /**
     * 付款账号
     */
    private String acctid;
    /**
     * 商户号（网银）
     */
    private String cid;
    /**
     * 网银登录用户名
     */
    private String userid;
    /**
     * 网银登录密码
     */
    private String userpass;
    /**
     * 超额提现 1开启 0关闭
     */
    @TableField("spuer_money")
    private String spuerMoney;

    private Double trans_fee;//提现手续费率

    private String app_id;//商户代号，开通收付直通车时申请

    private String second_accnt_name;//二级商户名称

    private String mrch_cert;//证书路径

    private String mrch_cert_pwd;//证书密码z

    private String commkey;//验签密钥

    private String epay_cert_test;

    private String epay_cert_prod;

    private String pay_url;//银企直连代理软件Ip

    private String accntType;//实体账户类型 0：监管户  1：一般户

    private String useAssurance;//是否开启供应商担保账户

    private String getDownloadUrl;//对账单下载地址

    private String partner;

    private String md5Key;//对账单Md5密钥



    /**
     * /鉴权密钥
     */
    @TableField("authen_key")
    private String authenKey;

    /**
     * /支付通道卡号
     */
    @TableField("pay_card")
    private String payCard;

    /**
     * /超额提现汇款卡号
     */
    @TableField("pass_withdraw_card")
    private String passWithdrawCard;


    private String versionNo;//版本标识


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MchConfig{" +
        "id=" + id +
        ", mchNo=" + mchNo +
        ", acctid=" + acctid +
        ", cid=" + cid +
        ", userid=" + userid +
        ", userpass=" + userpass +
        ", spuerMoney=" + spuerMoney +
        "}";
    }
}
